package com.atguigu.userservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

@EnableDiscoveryClient   /*nacos注册*/
@SpringBootApplication   /*启动类*/
@ComponentScan(basePackages = {"com.atguigu"})           /*扫描*/
@MapperScan("com.atguigu.userservice.mapper")           //mapper扫描
public class ServiceUcApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceUcApplication.class,args);
    }
}